import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/pages/login')
  }
]


const router = new VueRouter({
  mode: 'hash',
  routes,
})

export const DynamicRoutes = [
  {
    path: "",
    name: 'Layout',
    redirect: "person",
    component: () => import("../pages/layout"),
    meta: {
      requireAuth: true,
      name: "布局"
    },
    children: []
  }
]


export default router
